<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>后台管理模板</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
		<link rel="stylesheet" href="../../css/global.css" media="all">
		<link rel="stylesheet" type="text/css" href="http://www.jq22.com/jquery/font-awesome.4.6.0.css">
		<link rel="stylesheet" href="../../datatables/media/css/jquery.dataTables.css">
		<link rel="stylesheet" href="../../datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css">
	</head>
	<body>
		<div class="layui-layout layui-layout-admin" style="border-bottom: solid 5px #1aa094;">
			<!--头部导航-->
			<div class="layui-header header header-demo" ></div>
			<!--左侧导航-->
			<div class="layui-side layui-bg-black" id="admin-side">
			</div>
			<!--右侧具体内容-->
			<div class="layui-body" style="bottom: 0;border-left: solid 2px #1AA094;padding:20px" id="admin-body">
				<div>
					<label class="title">管理员账号管理</label>
					<a href="addmanager.html"><button class="layui-btn layui-btn-small" style="float: right;margin-bottom: 10px"><i class="layui-icon">&#xe608;</i> 添加</button></a>
				</div>
				<hr />
				<div class="select">
				<select name="managerselect" lay-verify="">
					<option value="1">按编号↑</option>
					<option value="2">只看超级管理员</option>
					<option value="3">只看管理员</option>
					<option value="4">按创建时间↑</option>
					<option value="4">按创建时间↓</option>
				</select>
				<div class="layui-btn layui-btn-danger  layui-btn-small selectbtn">批量关闭</div><div class="layui-btn  layui-btn-small selectbtn">重置密码</div>
				</div>
				<div class="layui-form">
                    <table class="layui-table" id="managerTable">
                        <thead>
                            <tr>
                            <th><input type="checkbox" name="" id="checkall" onchange="checkAll(this,'#managerTable')"></th>
								<th style="width: 80px">头像</th>
								<th>编号</th>
								<th>用户名</th>
								<th>类型</th>
								<th>性别</th>
								<th>创建时间</th>
								<th>状态</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td><input type="checkbox" name="" id="" ></td>
								<td><img src="../../images/0.jpg"></td>
								<td>0412</td>
								<td>lzy</td>
								<td>超级管理员</td>
								<td>女</td>
								<td>2017-6-30</td>
								<td>使用中</td>
								<td><div class="layui-btn layui-btn-danger  layui-btn-small">关闭账号</div><div class="layui-btn  layui-btn-small">重置密码</div><div class="layui-btn layui-btn-warm  layui-btn-small">编辑</div></td>
							</tr>
							<tr>
								<td><input type="checkbox" name="" id="" ></td>
								<td><img src="../../images/xiaosong.jpg"></td>
								<td>0412</td>
								<td>adj</td>
								<td>超级管理员</td>
								<td>男</td>
								<td>2017-6-30</td>
								<td>使用中</td>
								<td><div class="layui-btn layui-btn-danger  layui-btn-small">关闭账号</div><div class="layui-btn  layui-btn-small">重置密码</div><div class="layui-btn layui-btn-warm  layui-btn-small">编辑</div></td>
							</tr>
							<tr>
								<td><input type="checkbox" name="" id="" ></td>
								<td><img src="../../images/1.jpg"></td>
								<td>0412</td>
								<td>zal</td>
								<td>超级管理员</td>
								<td>女</td>
								<td>2017-7-1</td>
								<td>使用中</td>
								<td><div class="layui-btn layui-btn-danger  layui-btn-small">关闭账号</div><div class="layui-btn  layui-btn-small">重置密码</div><div class="layui-btn layui-btn-warm  layui-btn-small">编辑</div></td>
							</tr>
						</tbody>
					</table>
					</div>
            </div>
            <!--底部导航-->
            <div class="layui-footer footer footer-demo" id="admin-footer"></div>
            <!--JS模块-->
            <script type="text/javascript" src="../../layui/layui.js"></script>
            <script src="../../js/jquery-1.12.3.min.js"></script>
            <script src="../../js/index.js"></script>
            <!-- DataTables JavaScript -->
            <script src="../../datatables/media/js/jquery.dataTables.min.js"></script>
            <script>
            $(function(){
            $("#manager").addClass('layui-this');//对应订单管理的背景色
            $('#managerTable').DataTable({
            responsive: true,
            ordering: false,
            searching: true,
            "bLengthChange": false,
            "bRetrieve": true,
            "bFilter": true//过滤功能
            });
            for (var i = 0; i < 12; i++) {
            $('#managerTable').dataTable().fnAddData(['<input type="checkbox" name=""  >','<img src="../../images/6.jpg">', '0412', 'lzy','管理员', '女','2017-7-1','使用中','<div class="layui-btn layui-btn-danger  layui-btn-small">关闭账号</div><div class="layui-btn  layui-btn-small">重置密码</div><div class="layui-btn layui-btn-warm  layui-btn-small">编辑</div>'] );
            }
            // $('#expressTable').dataTable().fnClearTable();//清除表格内
            })
            
            </script>
            
        </div>
    </body>
</html>

